<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=ISO-8859-2">
<title>Administrace</title>
<link rel="stylesheet" type="text/css" href="../style.css">
<body>
<?php
if (!IsSet($_SERVER["PHP_AUTH_PW"]))
  {
  Header("WWW-Authenticate: Basic realm=\"Hesla\"");
  Header("HTTP/1.0 401 Unauthorized");
  echo "P�tup pouze na uivatelsk�jm�o a heslo.";
  exit;
  }
  else
    {
      /*tady by mel zapsat do logu pokus o pristup*/
      include("../config.php");
      if (md5($_SERVER["PHP_AUTH_PW"])!=$pass) { /*zapsat kdo odkud a s jakym heslem*/echo "Neplatn�heslo!"; exit;}
      $secure=true;
      $s_pass=$_SERVER["PHP_AUTH_PW"];

include("../connect.php");

               $polozka[1]="strana";
               $polozka[2]="jm_sk";
               $polozka[3]="kategorie";
               $polozka[4]="vek";
               $polozka[5]="nick";
               $polozka[6]="jmeno";
               $polozka[7]="prijmeni";
               $polozka[8]="poznamky";
               $polozka[9]="tel";
               $polozka[10]="email";
               $polozka[11]="u_id";
               $polozka[12]="order by";

               $pocet_podminek=1;

if(!$export_print && !$export_uca){
     echo '
      <div id="main">';
      include("menu.php");    
      echo'<div id="editace">
		';

//ed_str ok_str
					if($ed_str || $ok_str)
	               include("ed_str.php");
//ed_kat ok_kat
					if($ed_kat || $ok_kat)
               	include("ed_kat.php");
//ed_sku ok_sku
					if($ed_sku || $ok_sku)
	               include("ed_sku.php");
//ed_uca ok_uca
					if($ed_uca || $ok_uca)
	               include("ed_uca.php");
//tab_uca ok_tab
					if($tab_uca || $tab_ok)
	               include("ed_tab.php");
//emaily
					if($emaily)
	               include("emaily.php");
	echo '
	    </div><!--editace-->
	</div><!--main-->
	';
}

//export_uca
					if($export_uca)
	               include("export_view.php");
//export_print
					if($export_print)
	               include("export_print.php");
} ?>
 </body>
</html>
